package com.qingke.demo.author;

public class Author {
	private String name;
	private String email;
	private char gender;
	
	public Author(String name, String email,char gender){
		if(gender!='m'&&gender!='f'){
			System.out.println("Error");
		}
			
		this.name = name;
		this.email = email;
		this.gender = gender;
	}
	
	public String getName(){
		return name;
	}
	
	public String getEmail(){
		return email;
	}
	
	public void setEmail(String email){
		this.email = email;
	}
	
	public char getGender(){
		return gender;
	}
	
	public String toString(){
		return "Author[name="+name+",email="+email+",gender="+gender+"]";
	}
	
	
}
